package com.yuan.springcloud.entities;

import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * Created by IntelliJ IDEA.
 * User: jinshengyuan
 * Date: 2019-03-22
 * Time: 9:43
 * description:
 **/

@NoArgsConstructor //无参构造方法
@Data //setter、getter方法
@Accessors(chain = true) //支持链式操作
public class Dept {
    private Long dept_no;
    private String dept_name;
    private String db_source;

    public Dept(String dept_name) {
        super();
        this.dept_name = dept_name;
    }

    public static void main(String[] args) {

        Dept dept = new Dept();
        dept.setDept_no(11L).setDept_name("aaa").setDb_source("mysql");//lombok链式操作
        System.out.println(dept);

    }
}
